package cn.xunjie.ymcc.feignClients;

import cn.xunjie.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * user服务的代理Feign客户端
 */
@FeignClient(value = "service-user",fallbackFactory = UserFeignClientFallback.class)
public interface UserFeignClient {

    @GetMapping("/user/phone/{phone}")
    JSONResult loadByPhone(@PathVariable("phone") String phone);

}
